<div>
    <div class="contenttitle">
        请注册您的新账号或者用已有账号登录。
    </div><!-- mainmenu -->
    <table style="table-layout: auto">
        <tr>
            <td id="loginleftcol" valign="top">
                <p style="font-size: 110%; font-weight: bold; color: darkgreen">注册新账号:</p>

                <div class="form">
                    <?php
                    $form = $this->beginWidget('CActiveForm', array(
                                'id' => 'register-form',
                                'enableClientValidation' => true,
                                'enableAjaxValidation' => true,
                                'clientOptions' => array(
                                    'validateOnSubmit' => true,
                                ),
                            ));
                    ?>

                    <p class="note">带<span class="required">*</span>的内容要求填写.</p>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'name'); ?>
                        <?php echo $form->textField($model2, 'name'); ?>
                        <?php echo $form->error($model2, 'name'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'email'); ?>
                        <?php echo $form->textField($model2, 'email'); ?>
                        <?php echo $form->error($model2, 'email'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'password'); ?>
                        <?php echo $form->passwordField($model2, 'password'); ?>
                        <?php echo $form->error($model2, 'password'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'password2'); ?>
                        <?php echo $form->passwordField($model2, 'password2'); ?>
                        <?php echo $form->error($model2, 'password2'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'region'); ?>
                        <?php echo $form->textField($model2, 'region'); ?>
                        <?php echo $form->error($model2, 'region'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model2, 'birthday'); ?>
                        <?php echo $form->dropDownList($model2, 'birthyear',
                                array('2000' => 2000, '2001' => 2001)); ?>
                        <?php echo $form->dropDownList($model2, 'birthmonth'
                                ,$model2->months); ?>
                        <?php echo $form->dropDownList($model2, 'birthday',
                                array('1' => 1, '2' => 2)); ?>
                        <?php echo $form->error($model2, 'birthday'); ?>
                    </div>

                    <div class="row buttons">
                        <?php echo CHtml::submitButton('注册新账号'); ?>
                    </div>

                    <?php $this->endWidget(); ?>
                    </div><!-- form -->

                </td><!-- loginleftcol -->

                <td id="loginrightcol" valign="bottom">
                    <p style="font-size: 110%; font-weight: bold; color: darkgreen">用已有账号登录:</p>

                    <div class="form">
                    <?php
                        $form = $this->beginWidget('CActiveForm', array(
                                    'id' => 'login-form',
                                    'enableClientValidation' => true,
                                    'enableAjaxValidation' => true,
                                    'clientOptions' => array(
                                        'validateOnSubmit' => true,
                                    ),
                                ));
                    ?>

                        <p class="note">带<span class="required">*</span>的内容要求填写.</p>

                        <div class="row">
                        <?php echo $form->labelEx($model, 'email'); ?>
                        <?php echo $form->textField($model, 'email'); ?>
                        <?php echo $form->error($model, 'email'); ?>
                    </div>

                    <div class="row">
                        <?php echo $form->labelEx($model, 'password'); ?>
                        <?php echo $form->passwordField($model, 'password'); ?>
                        <?php echo $form->error($model, 'password'); ?>
                    </div>

                    <div class="row rememberMe">
                        <?php echo $form->checkBox($model, 'rememberMe'); ?>
                        <?php echo $form->label($model, 'rememberMe'); ?>
                        <?php echo $form->error($model, 'rememberMe'); ?>
                    </div>

                    <div class="row buttons">
                        <?php echo CHtml::submitButton('Login'); ?>
                    </div>

                    <?php $this->endWidget(); ?>
                </div><!-- form -->


            </td><!-- loginrightcol -->

        </tr></table>
</div>
